﻿namespace Example
{
    using System;

    using Cavity;

    public sealed class Product : ComparableObject
    {
        public Product()
        {
            Unique = Guid.NewGuid();
        }

        public int Id { get; set; }

        public Guid Unique { get; set; }

        public string Name { get; set; }
        
        public override string ToString()
        {
            return "{0},{1},\"{2}\"".FormatWith(Id, Unique, Name);
        }
    }
}